<%@page import="org.ddr.member.dao.MemberDAO"%>
<%@page import="java.util.ArrayList"%>
<%@page import="org.ddr.member.MemberVO"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

	
<jsp:useBean id="member" scope="session" class ="org.ddr.member.MemberVO"/>
<jsp:setProperty name = "member" property="userid" param="id"/>
<jsp:setProperty name = "member" property="pw" param="pw"/>


<%
	List<MemberVO> list = new ArrayList<MemberVO>();
try{
	list = MemberDAO.instance.getUser(member.getUserid(), member.getPw());	
}catch(Exception e){
%>
<jsp:forward page = "login.jsp"/>
<%}
	session.setAttribute("Login", list.get(0).getUserid());
	
	response.sendRedirect("boardlist.jsp");
%>

